﻿using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Text;
using System.Threading.Tasks;

namespace Lrd.Template.Core.CodeGenerator
{
   public interface IDbServices
    {
        /// <summary>
        /// tableNames如何为空时查询所有表。。
        /// </summary>
        /// <param name="tableNames"></param>
        /// <returns></returns>
        IEnumerable<DbTable> GetDbTables(string[] tableNames);

        IEnumerable<DbTableColumn> GetDbTableColumns(int tableId);
        DbConnection GetDbConnection();

        /// <summary>
        /// tableNames如何为空时查询所有表。。
        /// </summary>
        /// <param name="tableNames"></param>
        /// <returns></returns>
        IEnumerable<DbTable> GetGetDbTableAndColumns(string[] tableNames);
    }
}
